/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "客户信息",TableName = "Luxs_customer",DetailTable =  new Type[] { typeof(Luxs_tx_for_customer)},DetailTableCnName = "客户特殊需求")]
    public partial class Luxs_customer:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [Key]
       [Display(Name ="luxs_customer_id")]
       [Column(TypeName="uniqueidentifier")]
       [Required(AllowEmptyStrings=false)]
       public Guid luxs_customer_id { get; set; }

       /// <summary>
       ///客户全称
       /// </summary>
       [Display(Name ="客户全称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string customername { get; set; }

       /// <summary>
       ///客户缩写
       /// </summary>
       [Display(Name ="客户缩写")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       [Editable(true)]
       public string customerjx { get; set; }

       /// <summary>
       ///客户代码
       /// </summary>
       [Display(Name ="客户代码")]
       [MaxLength(20)]
       [Column(TypeName="nvarchar(20)")]
       [Editable(true)]
       public string customercode { get; set; }

       [Display(Name ="客户特殊需求")]
       [ForeignKey("luxs_customer_id")]
       public List<Luxs_tx_for_customer> Luxs_tx_for_customer { get; set; }

    }
}